<?php
$params = array_merge(
    require __DIR__ . '/../../common/config/params.php',
    require __DIR__ . '/../../common/config/params-local.php',
    require __DIR__ . '/params.php',
    require __DIR__ . '/params-local.php'
);

return [
    'id' => 'ym2_notify',
    'name' => 'yii manager2.0',
    'language' => 'zh-CN',
    'sourceLanguage' => 'en-US',
    'basePath' => dirname(__DIR__),
    'bootstrap' => ['log'],
    //'catchAll' => ['shutdown/index'], //关停站点
    'controllerNamespace' => 'notify\controllers',
    'components' => [
        'request' => [
            'csrfParam' => '_ym2_csrf_notify',
        ],
        'session' => [
            // this is the name of the session cookie used for login on the frontend
            'name' => 'ym2_notify',
            'savePath' => '@root/sess/notify',
            'timeout' => 12 * 3600,
        ],
        'log' => [
            'traceLevel' => YII_DEBUG ? 3 : 0,
            'targets' => [
                [
                    'class' => 'yii\log\FileTarget',
                    'levels' => ['error', 'warning'],
                ],
            ],
        ],
        'errorHandler' => [
            'errorAction' => 'error/index',
        ],

        'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'rules' => [
            ],
        ],

    ],
    'params' => $params,
];
